<script setup>
import { ref } from 'vue'

let props = defineProps(['entityDataItem'])
let entityDataItem = props.entityDataItem
</script>


<template>
    <div class="box">
        <div class="img-box">
            <img :src="entityDataItem.image0" alt="">
        </div>
        <div class="body-box">
            <div class="row1">
                {{ entityDataItem.field11 }}
            </div>
            <div class="row2">
                <img :src="entityDataItem.image1" alt="">
                <p>{{ entityDataItem.field21 }}</p>
            </div>
            <div class="row3">
                <img :src="entityDataItem.image2" alt="">
                <p>{{ entityDataItem.field31 }}</p>
            </div>
        </div>
    </div>
</template>


<style scoped>
.box {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0.2rem 0.2rem 0.3rem #d9d9d9,
        -0.2rem -0.2rem 0.3rem #ffffff;
    border-radius: 0.3rem;
    margin-bottom: 0.4rem;
    overflow: hidden;
}

.img-box {
    width: 100%;
    height: 10rem;
    background: #f5f5f5;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.body-box {
    width: 100%;
    height: 100%;
    padding: 0.6rem;
    text-align: left;
}

.row1 {
    font-size: 1.4rem;
}

.row2 {
    font-size: 0.8rem;
    display: flex;
    margin-top: 0.4rem;
}

.row3 {
    display: flex;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.row2 p,
.row3 p {
    margin: 0;
    padding: 0;
    margin-left: 0.4rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.row2 img,
.row3 img {
    width: 1.2rem;
    height: 1.2rem;
}
</style>
